home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / prefetch.scr < prev    next >
Encoding:
Text File  |  1994-08-08  |  1.6 KB  |  58 lines

  1. @THREAD PREFETCH.LOG
  2. @NEWALIAS SADD SCSIADD.GRA
  3. @IMPORT SCSICOM.SCR
  4. SADD DD_OPEN
  5.  
  6. * 0=Async mode, 1=Sync mode
  7. SADD SET MODE=1
  8.  
  9. * Command completion timeout (Secs)
  10. * 0=the assigned value is the default set by the driver,
  11. * -1=the assigned value is infinite.
  12. SADD SET TIMEOUT=0
  13.  
  14. * Name for paramblock
  15. SADD SET LABEL = "READ CAPACITY"
  16.  
  17. SADD READCAPACITY
  18.  
  19. * SADD SET LOGICAL_BLOCK_SIZE = 512
  20. **  SADD SET BUF_CLUSTER_SIZE = 2
  21.  
  22. * 1 : Status returned as soon as the command descriptor block is validated
  23. * 0 : Status returned after the operation is complete
  24.   SADD SET STATUS_RETURN_IMMED = 0
  25.  
  26. * 32bit starting logical block addr
  27. SADD SET LOGICAL_BLOCK_ADDR = 0
  28.  
  29.  
  30. *STARTING LOGICAL BLOCK ADDR 
  31. *SADD RESPONSE $PROMPT="ENTER STARTING LOGICAL BLOCK ADDR : " $RESPONSE=LOGICAL_BLOCK_ADDR $PAUSE=15
  32.  
  33. *  0 = indicates that the logical block address field
  34. *      specifies the first logical block of the range of
  35. *      logical blocks to be operated on by this command.
  36. *  1 = indicates that the logical block address field is
  37. *      a two's complement displacement.  This -ve or +ve
  38. *      displacement shall be added to the logical block
  39. *      address last accessed on the logical unit to form the
  40. *      logical block address for this command.
  41. SADD SET ADDR_MODE=0
  42.  
  43. * Reserved - set to zero
  44. SADD SET CDB_BYTE6=0 
  45.  
  46. * No. of contiguous logical blocks to be read
  47. SADD SET NUM_BLOCKS = 2
  48.  
  49. *NO. OF CONTIGOUS LOGICAL BLOCKS TO BE READ 
  50. *SADD RESPONSE $PROMPT="ENTER # OF LOGICAL BLOCKS : " $RESPONSE=NUM_BLOCKS $PAUSE=15
  51.  
  52. SADD SET LABEL = "PRE FETCH"
  53.  
  54. SADD PREFETCH
  55.  
  56. SADD DD_CLOSE
  57.  
  58.